﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using MyWeb.Business;
using MyWeb.Common;

namespace MyWeb
{
    public partial class Default : System.Web.UI.Page
    {
        
        protected void Page_Load(object sender, EventArgs e)
        {
            List<Data.tbStates> list = tbStatesService.tbStates_GetByAll();

            string htmlText = "<ul style=\"list-style:none\">";
            for (int i = 0; i < list.Count; i++)
            {
                htmlText += string.Format("<li style=\"width:25%;float:left\"><a href=\"{0}\">{1}</a></li>", list[i].link, list[i].stateName);
            }
            htmlText += "</ul>";
            Literal1.Text = htmlText;
        }
    }
}